version: '3.8'

networks:
  app:

services:

  alarm_server:
    build: ./
    container_name: alarm_server
    restart: always
    logging:
      driver: "json-file"
      options:
        max-file: "2"
        max-size: "55m"
    environment:
      TELEGRAM_BOT_APITOKEN: YOUR_BOT_TOKEN
      TELEGRAM_CHAT_ID: -1002107404061
      ALERT_PORT: 64127
      CAMERA_URL: http://127.0.0.1/camera.jpg
    ports:
      - 64127:64127
    networks:
      - app
